<%@ include file="../templates/header.jsp"%>

<div id="content" class="container">
	<!-- main
    ================================================== -->
	<section id="main" class="grid9 first">
		<article>

			<s:if test="%{#session[@com.dz.utils.Constants@USER] != null}">
				<h2 class="huge">
					<s:text name="titleescouade"></s:text>
				</h2>

				
				<hr>
				<s:iterator value="#session[@com.dz.utils.Constants@ZOMBIELIST]">
					<s:form action="ChangeZombieName">
						<s:textfield key="nameZombie" labelposition="left" value="%{name}" />
						<s:hidden key="idZombie" value="%{id}" />
					</s:form>
					<table width="100%">
						<tr>
							<td width="20%"><s:text name="level"></s:text></td>
							<td width="20%"><s:property value="%{level}" /></td>
						</tr>
						<tr>
							<td width="20%"><s:text name="life"></s:text></td>
							<td width="20%"><meter
									value="<s:property value="%{life}" />" min="0" max="100"
									low="30" high="60" optimum="80">
									<s:property value="%{life}" />
									%
								</meter></td>
						</tr>
						<tr>
							<td width="20%"><s:text name="skill"></s:text></td>
							<td width="20%"><meter
									value="<s:property value="%{skill}" />" min="0"
									max="<s:property value="%{level}" />000">
									<s:property value="%{skill}" />
									/
									<s:property value="%{level}" />
									000
								</meter></td>
						</tr>
					</table>
					<hr>
				</s:iterator>
				
			</s:if>
			<s:else>
				<p>
					<s:text name="errorEscouadeCurrent"></s:text>
				</p>
			</s:else>
		</article>
	</section>
	<!-- end main -->

	<!-- sidebar
	================================================== -->
	<%@ include file="../templates/menuAccount.jsp"%>

</div>

<%@ include file="../templates/footer.jsp"%>